<%--
  Created by IntelliJ IDEA.
  User: 杨威
  Date: 2021/9/23
  Time: 19:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<input type="text" id="username"/><span id="sp"></span>
<button onclick="checks()">检测</button>

<script src="js/jquery-1.12.4.js"></script>
<script type="text/javascript">
    //$.get(url,data,function,dataType)
    function checks() {
        $.get("testGet","username="+$("#username").val(),function (msg) {
            $("#sp").text(msg)
        })
    }
</script>
</body>
</html>
